const express = require("express");
const app = express();
const port = 3000;

app.get("/:id.html", (req, res) => {
  res.setHeader("content-type", "text/html;charset=utf-8");
  console.log(req.params.id);
  res.end("商品详情");
});
app.listen(port, () => console.log(`Example app listening on port ${port}!`));
